package com.molichuxing.services.infrastructure.service.impl;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.molichuxing.services.infrastructure.bean.IdentityCardImgBean;
import com.molichuxing.services.infrastructure.dao.IdentityCardImgMapper;
import com.molichuxing.services.infrastructure.dto.request.create.IdentityCardImgCreateDto;
import com.molichuxing.services.infrastructure.service.IdentityCardImgService;

@Service("identityCardImgService")
public class IdentityCardImgServiceImpl implements IdentityCardImgService{

	@Autowired
	private IdentityCardImgMapper identityCardImgMapper;
	
	@Override
	public Boolean create(IdentityCardImgCreateDto createDto) {
		IdentityCardImgBean  bean = new IdentityCardImgBean();
		BeanUtils.copyProperties(createDto, bean);
		int num = identityCardImgMapper.create(bean);
		return num > 0;
	}

}
